<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>工厂订单信息</title>
<script language="javascript">
function showchima()
{
	var chima = $("#chima").val();
	if(chima==1)
	{
		$('#junma').show('fast');
		$('#dingzhiform').hide('fast');	
	}
	if(chima==2)
	{
		$('#dingzhiform').show('fast');	
		$('#junma').hide('fast');	
	}
	if(chima==3)
	{
		$('#dingzhiform').show('fast');	
		$('#junma').hide('fast');	
	}


}
	function changstatusPro(t,str)
	{
		
		
			if(confirm("确认修改状态?"))
			{
			$.post("/factory/ajaxbutton", {"op": "changstatus","id":str,"st":t},
			  function(data){
					if(data)
					{
						document.location.href = "/factory/orderdetail?orderid="+str;
						return;
					}
	
				return;
			   },"text");
			}
		
	}
function showcm()
{
	var leixing = 	$("#leixing").val();
	if(leixing=='lingmi')
	{
		$("#lingmi").show();
		$("#yingcun").hide();	
	}else{
		$("#lingmi").hide();
		$("#yingcun").show();	
	}
}
function saveform()
{
	
	var chima =$("#chima").val();
	
	if(chima ==1)
	{
		if ($("#model").val() ==0) {
			alert("请选择版型！");
			$("#model").focus();
			return false;
		}	
		if ($("#gender1").val() ==0) {
			alert("请选择性别！");
			$("#gender1").focus();
			return false;
		}	
		if ($("#size").val() ==0) {
			alert("请选择尺寸！");
			$("#size").focus();
			return false;
		}
		
		//如果是均码的，需要判断是否有五位SKU了。
		var sku = '{{$detail.goods_sku}}';
		var orderID = '{{$detail.orderId}}';
		$.post("/factory/ajaxbutton", {"op": "getlinkproduct","model":$("#model").val(),"gender1":$("#gender1").val(),"size":$("#size").val(),"sku":sku,"orderID":orderID},
		  function(data){
			if(data)
			{
				if(data.code==201)
				{
					if(data.in_transit>0)
					{
						if($("#urgentordermemo").val()=="")
						{
							alert("请填写理由！");
							$("#urgentordermemo").focus();
							return false;	
						}
						var in_transit = "并且有在途："+data.in_transit+"件，\r\n不允许直接派单！强行派单需要审核\r\n";
					}else{
						var in_transit = "";	
					}
					if(confirm("\r\n存在五位关联SKU："+data.linksku+" "+in_transit+".你是否还需要继续派单！\r\n如果销售平台还是八位的SKU，请修改成五位关联!\r\n"))
					{
						AWS.ajax_post($('#otherForm'));			
					}	
				}else{
					AWS.ajax_post($('#otherForm'));
				}
			}

		   },"json");
	}
	if(chima ==2)
	{
		
		if ($("#gender").val() ==0) {
			alert("请选择性别！");
			$("#gender").focus();
			return false;
		}
		
		var leixing = 	$("#leixing").val();
		if(leixing=='lingmi')
		{
			if ($("#height").val() =="") {
			alert("请填写身高！");
			$("#height").focus();
			return false;
			}
			
			if ($("#bust").val() =="") {
			alert("请填写胸围！");
			$("#bust").focus();
			return false;
			}
			if ($("#waistline").val() =="") {
			alert("请填写腰围！");
			$("#waistline").focus();
			return false;
			}
			
		
		}
		if(leixing=='yingcun')
		{
			if ($("#heightyingchun").val() =="") {
			alert("请填写身高！");
			$("#heightyingchun").focus();
			return false;
			}
			
			if ($("#bustyingchun").val() =="") {
			alert("请填写胸围！");
			$("#bustyingchun").focus();
			return false;
			}
			if ($("#waistlineyingchun").val() =="") {
			alert("请填写腰围！");
			$("#waistlineyingchun").focus();
			return false;
			}
		}
		AWS.ajax_post($('#otherForm'));
	}
	if(chima ==3)
	{
		AWS.ajax_post($('#otherForm'));
	}

}
/********关联SKU信息******/
function getlinkSku()
{
	$("#savenumSkuAndModels").hide();
	var ist = 1;
	if ($("#model").val() ==0) {
		ist = 0;
		return false;
	}	
	if ($("#gender1").val() ==0) {
		ist = 0;
		return false;
	}	
	if ($("#size").val() ==0) {
		ist = 0;
		return false;
	}
	var type = 1;
	if(ist==1)
	{
		//如果是均码的，需要判断是否有五位SKU了。
		var sku = '{{$detail.goods_sku}}';
		var orderID = '{{$detail.orderId}}';
		$.post("/factory/ajaxbutton", {"op": "getlinkproduct","model":$("#model").val(),"gender1":$("#gender1").val(),"size":$("#size").val(),"sku":sku,"orderID":orderID,"type":type},
		  function(data){
			if(data)
			{
				if(data.code==201 && type ==1)
				{
					var arraygoodsList = data.arraygoodsList;
					var tmp = "";
					tmp += '<select class="selection select2_group" name="linksku" id="linksku" >';
					tmp +='<option value="">请选择</option>';
					tmp +='<option value="9999">没有关联</option>';
                        for (var s = 0; s < arraygoodsList.length;s++) {
							if(data.linksku == arraygoodsList[s].goods_sku)
							{
								var selecttmp = "selected";
							}else{
								var selecttmp = "";	
							}
							tmp +="<option value="+arraygoodsList[s].goods_sku+" "+selecttmp+">"+arraygoodsList[s].goods_sku+"</option>";
						
						}
						tmp += "</select>";
						if(data.in_transit>0)
						{
							var instr="<font color=red><B>&nbsp;&nbsp;当前在途数： "+data.in_transit+" ，有关联在途不允许单独派单！特别紧急的订单请说明理由，派单后需要审核</font></B>";	
							instr+="<br><br>派单理由:<input name=\"urgentordermemo\" value=\"\" type=\"text\" id=\"urgentordermemo\" />";
						}else{
							var instr="";	
						}
						instr+="<input name=\"intransit\" value=\""+data.in_transit+"\" type=\"hidden\" id=\"intransit\" />";
						tmp +=instr;
					$("#showtmps").html(tmp);
				}else{
					$("#showtmps").html('');
					$("#savenumSkuAndModels").hide();
					//AWS.ajax_post($('#otherForm'));
				}
			}

		   },"json");
		$("#savenumSkuAndModels").show();
	}
}
</script>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">订单信息</h1>
      <span class="pagedesc"></span>
      <div class="menulist">
        <ul class="profile_summary">
         
        </ul>
      </div>
    </div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
        <form class="stdform stdform2"  id="otherForm" method="post" action="/factory/saveorder" enctype="multipart/form-data" >
        <input type="hidden" name="orderId" value="{{$detail.id}}">
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <thead>
              <tr>
                <th colspan="2" class="head1">一、基础信息</th>
              </tr>
            </thead>
          </table>
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <tbody>
             
               <tr>
                <td class="head1" width="120" bgcolor="#FFFFFF">订单编号</td>
                <td class="head0" bgcolor="#FFFFFF">{{$detail.orderId}}</td>
                <td class="head0" width="120" bgcolor="#FFFFFF">交易单号</td>
                <td class="head1" bgcolor="#FFFFFF"><a href="/orderlist/orderlist?kw={{$detail.dealid}}"  target="_blank">
                <font color="#0033FF">{{$detail.dealid}}</font></a></td>
              </tr>
               <tr>
                <td class="head1" bgcolor="#FFFFFF">订单状态</td>
                <td class="head0" bgcolor="#FFFFFF">
                {{$detail.statustext}}{{if $detail.orderurgent=='-4'}}<font color="#FF0000">(禁止发货)</font>{{/if}}{{if $detail.orderurgent=='-5'}}<font color="#FF0000">(加急)</font>{{/if}}
                </td>
                <td class="head0" bgcolor="#FFFFFF" width="120">店铺</td>
                <td class="head1" bgcolor="#FFFFFF">{{$detail.shopId}} {{if $detail.platformId}}({{$detail.platformId}}){{/if}} <br>{{$detail.customerId}}</td>
              </tr>
              <tr>
                <td class="head1" bgcolor="#FFFFFF">国家:</td>
                <td class="head0" bgcolor="#FFFFFF">{{$detail.country}}</td>
                <td class="head0" width="120" bgcolor="#FFFFFF">工厂</td>
                <td class="head1" bgcolor="#FFFFFF">{{$detail.factoryl}}</td>
              </tr>
              
                <tr>
                  <td class="head1" bgcolor="#FFFFFF">订单负责人</td>
                  <td class="head0" colspan="3" bgcolor="#FFFFFF">{{$detail.responsible}}</td>
                </tr>
                <tr>
                <td class="head1" bgcolor="#FFFFFF">客户信息</td>
                <td class="head0" colspan="3" bgcolor="#FFFFFF">
               
Name：        {{$detail.customerName}} <br>
Address：     {{$detail.address}}<br>
City：        {{$detail.city}}<br>
Provice：     {{$detail.provice}}<br>
Country：     {{$detail.country}}<br>
code：        {{$detail.postal}}<br>
Tel：         {{$detail.tel}}<br>
E-mail：      {{$detail.email}}<br>
                </td>
               
              </tr>
             </tbody>
           </table>
           <br>
            <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <thead>
              <tr>
                <td>
                 <button type="button" onClick="javascript:history.go(-1)" class="btn btn-primary" > 返回 </button>
                 
                 {{if $userdepartment==3}}
                  {{if $managers || in_array('105',$showpower)}}  <a href="javascript:void(0)" onClick="changstatusPro(7,'{{$detail.orderId}}')" class="stdbtn btn_red"><span>标加急</span></a>{{/if}}
         {{if $managers || in_array('105',$showpower)}}  <a href="javascript:void(0)" onClick="changstatusPro(16,'{{$detail.orderId}}')" class="stdbtn btn_red"><span>取消加急</span></a>{{/if}}
         {{if $managers || in_array('105',$showpower)}}  <a href="javascript:void(0)" onClick="changstatusPro(6,'{{$detail.orderId}}')" class="stdbtn btn_red"><span>禁止发货</span></a>{{/if}}
          {{if $managers || in_array('105',$showpower)}}  <a href="javascript:void(0)" onClick="changstatusPro(16,'{{$detail.orderId}}')" class="stdbtn btn_red"><span>取消禁止发货</span></a>{{/if}}
                 {{/if}}
                 {{if $userdepartment==4}}
                 
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     {{if $managers || in_array('105',$showpower)}} {{if $detail.status==1}}&nbsp;&nbsp; <a href="javascript:void(0)" onClick="changstatusPro(2,'{{$detail.orderId}}')" class="stdbtn btn_red"><span>标生产</span></a>{{else}}标生产{{/if}}{{/if}}
          {{if $managers || in_array('105',$showpower)}}  {{if $detail.status==2}}&nbsp;&nbsp; <a href="javascript:void(0)" onClick="changstatusPro(3,'{{$detail.orderId}}')" class="stdbtn btn_red"><span>标完成</span></a>{{else}}标完成{{/if}}{{/if}}
          {{if $managers || in_array('105',$showpower)}} {{if $detail.status==3}} &nbsp;&nbsp; <a href="javascript:void(0)" onClick="changstatusPro(4,'{{$detail.orderId}}')" class="stdbtn btn_red"><span>标发货</span></a>{{else}}标发货{{/if}}{{/if}}
          {{if $managers || in_array('105',$showpower)}}  {{if $detail.status==5}} 已作废{{else}} <a href="javascript:void(0)" onClick="changstatusPro(5,'{{$detail.orderId}}')" class="stdbtn btn_red"><span>标作废</span></a>{{/if}}{{/if}}                
              
              {{/if}}
                 </td>
              </tr>
            
            </thead>
           
          </table>
          <br>
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <thead>
              <tr>
                <th colspan="13" class="head1">订单信息</th>
              </tr>
            </thead>
           <tbody >
<thead>
  <tr class="lbbt">
    <td  bgcolor="#FEFFF1" width="10%">图片</td>
    <td  bgcolor="#FEFFF1" width="25%">SKU/商品名称</td>
    <td  bgcolor="#FEFFF1" width="25%">生产相关人员</td>
    <td  bgcolor="#FEFFF1" width="20%">尺寸信息</td>
    <td  bgcolor="#FEFFF1">工价</td>
    <!-- <td  bgcolor="#FEFFF1">成本</td>-->

    
  </tr>
</thead>


  <tr>
    <td valign="middle" bgcolor="#FFFFFF" style="position:relative;">
    {{if $detail.images_url}}<a href="/{{$detail.images_url}}" target="_blank"> <img src="{{$detail.thumb_url}}"></a>{{else}} <img src="{{$detail.thumb_url}}">{{/if}}
     </td>
    <td valign="middle" bgcolor="#FFFFFF">{{$detail.skuName}}<br><a href="/product/productlist?other={{$detail.goods_sku}}" target="_blank"><font color="#6666FF">{{$detail.goods_sku}}</font></a></td>
    <td height="58" width="30%" bgcolor="#FFFFFF">
    
    {{if $managers || $classid==12 || $classid==13}} 
    
    生产工人：
      <select name="proWorker" id="workers" class="selection" style="width:100px;">
         <option value="0" >请选择</option>
       {{foreach from=$workers item=li key=key}}
       <option value="{{$li.id}}" {{if $detail.sell.proWorker ==$li.id}} selected{{/if}}>{{$li.name}}</option>
       {{/foreach}}
    </select>
    裁剪：
      <select name="person1" id="caijian" class="selection" style="width:100px;">
         <option value="0" >请选择</option>
       {{foreach from=$caijian item=li key=key}}
       <option value="{{$li.id}}" {{if $detail.sell.person1 ==$li.id}} selected{{/if}}>{{$li.name}}</option>
       {{/foreach}}
    </select>
      质检：
      <select name="person3" id="person3" class="selection" style="width:100px;">
         <option value="0" >请选择</option>
       {{foreach from=$zhijian item=li key=key}}
       <option value="{{$li.id}}" {{if $detail.sell.person3 ==$li.id}} selected{{/if}}>{{$li.name}}</option>
       {{/foreach}}
    </select>
    {{else}}
   生产工人：
   	 {{foreach from=$workers item=li key=key}}
   			{{if $detail.sell.proWorker ==$li.id}}{{$li.name}}{{/if}}
       {{/foreach}}
       &nbsp; &nbsp; &nbsp; &nbsp;裁剪：
      
       {{foreach from=$caijian item=li key=key}}
      {{if $detail.sell.person1 ==$li.id}}{{$li.name}}{{/if}}
       {{/foreach}}
  &nbsp; &nbsp; &nbsp; &nbsp; 质检
   {{foreach from=$zhijian item=li key=key}}
      {{if $detail.sell.person3 ==$li.id}} {{$li.name}}{{/if}}
       {{/foreach}}
    {{/if}}
   </td>
    <td valign="middle" bgcolor="#FFFFFF">
    {{if $classid==12 || $classid==13}} 
   		 尺码选择:
         {{if $detail.sell.custom==1}}均码{{/if}}
         {{if $detail.sell.custom==2}}定制{{/if}}
         {{if $detail.sell.custom==3}}配件{{/if}}
         {{if $detail.sell.custom==0}}暂未设定{{/if}}
        <input name="chima" id="chima" type="hidden" value="{{$detail.sell.custom}}" >
         
         
    {{else}}
    	
     <select name="chima" id="chima" class="selection" style="width:150px;" onChange="showchima()">
       <option value="0" >尺码选择</option>
       <option value="1" {{if $detail.sell.custom==1}}selected{{/if}}>均码</option>
       <option value="2" {{if $detail.sell.custom==2}}selected{{/if}}>定制</option>
       <option value="3" {{if $detail.sell.custom==3}}selected{{/if}}>配件</option>
    </select>
    {{/if}}
    </td>
    <td bgcolor="#FFFFFF" class="cz">
     {{if $classid==12 || $classid==13}} 
     	<input type="text" name="price" value="{{$detail.sell.price}}" id="price">
     {{else}}
      	{{$detail.sell.price}}
      {{/if}}
    </td>
    <!--
     <td bgcolor="#FFFFFF" class="cz">
      	{{$detail.sell.cosprice}}
    </td>-->
  
  </tr>
    <tr  {{if $detail.sell.custom==1}}{{else}}style="display:none"{{/if}} id="junma">
    <td class="head1" bgcolor="#FFFFFF">均码信息填写</td>
    <td class="head0" colspan="6" bgcolor="#FFFFFF">
     {{if  $classid==12 || $classid==13}} 
    	版型：
        {{if $detail.sell.model==1}} 欧美{{/if}}
        {{if $detail.sell.model==2}} 亚洲{{/if}}
        {{if $detail.sell.model==0}} 未选择{{/if}}
        <br> 性别：
        {{if $detail.sell.gender1==1}} 男{{/if}}
        {{if $detail.sell.gender1==2}} 女{{/if}}
         {{if $detail.sell.gender1==3}} 通用{{/if}}
        {{if $detail.sell.gender1==0}} 未选择{{/if}}
        <br>
        尺寸：
        {{if $detail.sell.size==25}} XXS{{/if}}
        {{if $detail.sell.size==30}} XS{{/if}}
        {{if $detail.sell.size==35}} S{{/if}}
        {{if $detail.sell.size==40}} M{{/if}}
        {{if $detail.sell.size==45}} L{{/if}}
        {{if $detail.sell.size==50}} XL{{/if}}
        {{if $detail.sell.size==55}} XXL{{/if}}
        {{if $detail.sell.size==60}} XXXL{{/if}}
         {{if $detail.sell.size==0}} 未选择{{/if}}
                        
                      
    {{else}}
  <!--  {{if $arraygoodsList}}
    	<select class="full_input" id="linkSKU" name="linkSKU" onChange="getlinkSku()">
          <option value="0" selected>-请选择关联SKU-</option>
           <option value="9999">没有关联尺码</option>
    	 {{foreach from=$arraygoodsList item=skut key=key}}
      		   <option value="{{$skut.goods_sku}}">{{$skut.goods_sku}}</option>
       	{{/foreach}}
        </select>
    {{/if}}
        <br><br>
    -->

    版型：<select class="full_input" id="model" name="model" onChange="getlinkSku()">
                          <option value="0" selected>-版型-</option>
                          <option value="1" {{if $detail.sell.model==1}} selected{{/if}}>欧美</option>
                          <option value="2" {{if $detail.sell.model==2}} selected{{/if}}>亚洲</option>
                        </select>
<br><br>
    性别：<select class="full_input" id="gender1" name="gender1" onChange="getlinkSku()">
                          <option value="0" selected>-性别-</option>
                          <option value="1" {{if $detail.sell.gender1==1}} selected{{/if}}>-男-</option>
						  <option value="2" {{if $detail.sell.gender1==2}} selected{{/if}}>-女-</option>
                           <option value="3" {{if $detail.sell.gender1==3}} selected{{/if}}>-通用-</option>
                        </select>
<br><br>
    尺寸：<select class="full_input" name="size" id="size" onChange="getlinkSku()">
                          <option value="0" selected>-尺寸-</option>
                          <option value="25" {{if $detail.sell.size==25}} selected{{/if}}>-XXS-</option>
                          <option value="30" {{if $detail.sell.size==30}} selected{{/if}}>-XS-</option>
                          <option value="35" {{if $detail.sell.size==35}} selected{{/if}}>-S-</option>
                          <option value="40" {{if $detail.sell.size==40}} selected{{/if}}>-M-</option>
                          <option value="45" {{if $detail.sell.size==45}} selected{{/if}}>-L-</option>
                          <option value="50" {{if $detail.sell.size==50}} selected{{/if}}>-XL-</option>
                          <option value="55" {{if $detail.sell.size==55}} selected{{/if}}>-XXL-</option>
                       	  <option value="60" {{if $detail.sell.size==60}} selected{{/if}}>-XXXL-</option>
                        </select><br>
  <br>
  <div id="savenumSkuAndModels" style="display:none">五位关联SKU:
  <span id="showtmps"></span></div>
  {{/if}}
    </td>
    </tr>
     <tr {{if $detail.sell.custom==2 || $detail.sell.custom==3}}{{else}}style="display:none"{{/if}} id="dingzhiform">
    <td class="head1" bgcolor="#FFFFFF">定制信息填写</td>
    <td class="head0" colspan="6" bgcolor="#FFFFFF">
    
   {{if $classid==12 || $classid==13}} 
                    	性别：
                        {{if $detail.sell.gender==1}} 男{{/if}}
                        {{if $detail.sell.gender==2}} 女{{/if}}
                        {{if $detail.sell.gender==3}} 通用{{/if}}
                        {{if $detail.sell.gender==0}} 未选择{{/if}}
                        <br>
                        类型： 
                           {{if $detail.sell.leixing=='lingmi'}} cm{{/if}}
						 <!--  {{if $detail.sell.leixing=='yingcun'}} inch{{/if}}
                            {{if $detail.sell.leixing==''}} 未填写{{/if}}-->
                        <br>
                        <div id="lingmi" name="lingmi">
                        <br>
                        身高：{{$detail.sell.height}} cm
                        &nbsp; &nbsp; &nbsp;体重：{{$detail.sell.weight}} kg
                        <br>
                        胸围：{{$detail.sell.bust}}cm
                       &nbsp; &nbsp; &nbsp;腰围：{{$detail.sell.waistline}} cm<br>
                        臀围：{{$detail.sell.hipline}} cm
                       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;肩宽：{{$detail.sell.shoulder}} cm<br>
                        臂长：{{$detail.sell.outside}} cm
                        &nbsp;&nbsp;内接缝：{{$detail.sell.inseam}} cm <br>
                          </div>
                        
                        
                      <!--  <div id="yingcun" name="yingcun" {{if $detail.sell.leixing=='yingcun'}} {{else}}style="display:none"{{/if}} >
                        <br>
                          身高：{{$detail.sell.height}} inch
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;体重：{{$detail.sell.weight}} lbs
                        <br>
                        
                        胸围：{{$detail.sell.bust}} inch
                       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;腰围：{{$detail.sell.waistline}} inch<br>
                        臀围：{{$detail.sell.hipline}} inch
                       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 肩宽：{{$detail.sell.shoulder}} inch<br>
                        臂长：{{$detail.sell.outside}} inch
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;内接缝：{{$detail.sell.inseam}} inch <br>
                       </div>-->
                       
{{else}}
 	性别：<select class="selection"  name="gender" id="gender" style="width:180px;">
                          <option value="0">-性别-</option>
						  <option value="1" {{if $detail.sell.gender==1}} selected{{/if}}>-男-</option>
						  <option value="2" {{if $detail.sell.gender==2}} selected{{/if}}>-女-</option>
                            <option value="3" {{if $detail.sell.gender==3}} selected{{/if}}>-通用-</option>

                          
                          
                        </select><br>
                        类型：<select class="selection" name="leixing" id="leixing" style="width:180px;" onChange="showcm()">
						  <option value="lingmi" {{if $detail.sell.leixing=='lingmi'}} selected{{/if}}>-cm-</option>
						  <option value="yingcun" {{if $detail.sell.leixing=='yingcun'}} selected{{/if}}>-inch-</option>
                        </select><br>
                        
                        <div id="lingmi" name="lingmi" {{if $detail.sell.leixing=='lingmi' ||  $detail.sell.leixing==''}} {{else}}style="display:none"{{/if}}>
                        <br>
                        身高：<input type="text" value="{{$detail.sell.height}}"  name="height"  id="height" class="width100" > cm
                        &nbsp; &nbsp; &nbsp;体重：<input type="text" value="{{$detail.sell.weight}}"  name="weight" id="weight" class="width100"> kg
                        <br>
                        
                        胸围：<input type="text" value="{{$detail.sell.bust}}"  name="bust" id="bust" class="width100"  > cm
                       &nbsp; &nbsp; &nbsp;腰围：<input type="text" value="{{$detail.sell.waistline}}"  name="waistline" id="waistline" class="width100" > cm<br>
                        臀围：<input type="text" value="{{$detail.sell.hipline}}"  name="hipline" class="width100"> cm
                       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;肩宽：<input type="text" value="{{$detail.sell.shoulder}}"  name="shoulder" id="shoulder" class="width100"> cm<br>
                        臂长：<input type="text" value="{{$detail.sell.outside}}"  name="outside" class="width100" > cm
                        &nbsp;&nbsp;内接缝：<input type="text" value="{{$detail.sell.inseam}}"  name="inseam" class="width100"> cm <br>
                          </div>
                        
                        
                        <div id="yingcun" name="yingcun" {{if $detail.sell.leixing=='yingcun'}} {{else}}style="display:none"{{/if}} >
                        <br>
                          身高：<input type="text" value="{{$detail.sell.height}}"  name="heightyingchun" id="heightyingchun" class="width100" > inch
                        &nbsp; &nbsp; &nbsp;体重：<input type="text" value="{{$detail.sell.weight}}"  name="weightyingchun" id="weightyingchun" class="width100"> lbs
                        <br>
                        
                        胸围：<input type="text" value="{{$detail.sell.bust}}"  name="bustyingchun" id="bustyingchun" class="width100"  > inch
                       &nbsp; &nbsp; &nbsp;腰围：<input type="text" value="{{$detail.sell.waistline}}"  name="waistlineyingchun" id="waistlineyingchun" class="width100" > inch<br>
                        臀围：<input type="text" value="{{$detail.sell.hipline}}"  name="hiplineyingchun" id="hiplineyingchun" class="width100"> inch
                       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;肩宽：<input type="text" value="{{$detail.sell.shoulder}}"  name="shoulderyingchun" id="shoulderyingchun" class="width100"> inch<br>
                        臂长：<input type="text" value="{{$detail.sell.outside}}"  name="outsideyingchun" id="outsideyingchun" class="width100" > inch
                        &nbsp;&nbsp;内接缝：<input type="text" value="{{$detail.sell.inseam}}"  name="inseamyingchun" id="inseamyingchun" class="width100"> inch <br>
                       </div>
{{/if}}
    </td>
    </tr>
    
    
    
    
    
    
      <tr>
    <td class="head1" bgcolor="#FFFFFF">交货日期</td>
    <td class="head0" colspan="6" bgcolor="#FFFFFF">
 		<input type="text" name="deliveryTime" value="{{$detail.deliveryTime}}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker WdateFmtErr">
    </td>
    
    </tr>
     <tr>
    <td class="head1" bgcolor="#FFFFFF">实际重量</td>
    <td class="head0" colspan="6" bgcolor="#FFFFFF">
 		<input type="text" name="scale" id="scale" class="width200" value="{{$detail.sell.scale}}" placeholder="实际称重">
    </td>
    
    </tr>
     <tr>
    <td class="head1" bgcolor="#FFFFFF">备注</td>
    <td class="head0" colspan="6" bgcolor="#FFFFFF">
    
 		 <textarea name="descr" cols="8" rows="8">{{$detail.descr}}</textarea>

    </td>
    
    </tr>
          </table>
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <thead>
              <tr>
                <td>
                
                {{if $detail.status==3}}
                	
                   {{if $managers ||  $userdepartment==4}}
                  <button type="button" onClick="saveform()" class="btn btn-primary" > 修改订单 </button>
                  {{/if}}
                {{else}}
                	<button type="button" onClick="saveform()" class="btn btn-primary" > 修改订单 </button>
                {{/if}}
                 </td>
              </tr>
            
            </thead>
           
          </table>
        </form>
        
        {{if $orderlog}}
        <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <thead>
              <tr>
                <th colspan="12" class="head1">操作日志</th>
              </tr>
            </thead>
           <tbody >
<thead>
  <tr class="lbbt">
    <td  bgcolor="#FEFFF1" width="10%">修改时间</td>
    <td  bgcolor="#FEFFF1" width="25%">操作详情</td>
    <td  bgcolor="#FEFFF1" width="25%">操作人员</td>
  
    
  </tr>
</thead>
 
     {{foreach from=$orderlog item=li key=key}}
    <tr>
    <td valign="middle" bgcolor="#FFFFFF" style="position:relative;">{{$li.operTime}}</td>
    <td>{{$li.descr}}</td>
     <td valign="middle" bgcolor="#FFFFFF">{{$li.opername}}</td>
    </tr>
       {{/foreach}}
        {{/if}}
        <br />
      </div>
      <!--subcontent--> 
      
      <!--subcontent--> 
      
    </div>
    <!--contentwrapper--> 
    
  </div>
  <!-- centercontent --> 
  
</div>
<!--bodywrapper-->

</body>
</html>